package com.lujianing.cmd;

public enum AbsEnum {
	
	ServerSoftware("Server Software:",getNameLength("Server Software:")),
	ServerHostname("Server Hostname:",getNameLength("Server Hostname:")) ,   
	ServerPort("Server Port:",getNameLength("Server Port:")) ,
	SSLTLSProtocol("SSL/TLS Protocol:",getNameLength("SSL/TLS Protocol:")) ,
	ServerTempKey("Server Temp Key:",getNameLength("Server Temp Key:")) ,
	TLSServerName("TLS Server Name:",getNameLength("TLS Server Name:"))  ,     
	DocumentPath("Document Path:",getNameLength("Document Length:"))   ,   
	DocumentLength("Document Length:",getNameLength("Document Length:")) ,
	
	ConcurrencyLevel("Concurrency Level:",getNameLength("Concurrency Level:")), 
	TimeTakenForTests("Time taken for tests:",getNameLength("Time taken for tests:")), 
	CompleteRequests("Complete requests:",getNameLength("Complete requests:")), 
	FailedRequests("Failed requests:",getNameLength("Failed requests:")), 
	TotalTransferred("Total transferred:",getNameLength("Total transferred:")), 
	HTMLTransferred("HTML transferred:",getNameLength("HTML transferred:")), 
	 
	RequestsPerSecond("Requests per second:",getNameLength("Requests per second:")), 
	 
	TimePerRequest("Time per request:",getNameLength("Time per request:")), 
	
	TransferRate("Transfer rate:",getNameLength("Transfer rate:")), 
	
	Connect("Connect:",getNameLength("Connect:")), 
	Processing("Processing:",getNameLength("Processing:")),
	Waiting("Waiting:",getNameLength("Waiting:")),
	Total("Total:",getNameLength("Total:"));
	private String name;
	private int length;
	private AbsEnum(String name,int length) {
		this.name=name;
		this.length=length;
	}
	
	 // 普通方法
    public static int getNameLength(String legth) {
        return legth.length();
    }

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the length
	 */
	public int getLength() {
		return length;
	}

	/**
	 * @param length the length to set
	 */
	public void setLength(int length) {
		this.length = length;
	}

}
